import java.util.Scanner;
public class sort
{
	public static void main(String args[])
	{
		int x;
		Scanner scanner=new Scanner(System.in);
		System.out.println("输入第一个整形数：");
		int a=scanner.nextInt();
		System.out.println("输入第二个整形数：");
		int b=scanner.nextInt();
		System.out.println("输入第三个整形数：");
		int c=scanner.nextInt();
		if(a<b)
		{
			x=a;
			a=b;
			b=x;
		}
		else
		{
			a=a;
			b=b;
		}
		if(a<c)
		{
			x=a;
			a=c;
			c=x;
		}
		else
		{
			a=a;
			c=c;
		}
		if(b<c)
		{
			x=b;
			b=c;
			c=x;
		}
		else
		{
			b=b;
			c=c;
		}
		System.out.println(c+" "+b+" "+a);
	}
}